package cn.gok.common.dao.backstage;

import cn.gok.common.entity.backstage.Picture;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: DxlinY
 * @apiNote: 图片维护持久层
 * @date: 2020/9/30
 * @time: 11:18
 */
@Repository
public interface PictureMapper extends BaseMapper <Picture> {

    @Select("SELECT " +
            "PICTURE_ID, " +
            "PIC_CATEGORY," +
            "ORIGINAL_IMG," +
            "PICTURE_TITLE," +
            "RELATION_TYPE," +
            "UPDATE_TIME," +
            "`STATUS`  " +
            "FROM g_picture " +
            "WHERE IS_MASTER = true")
    List <Picture> listAll(Object target);


}
